from sqlalchemy import Integer, String, Column

from public.db import db


class TestcaseModel(db.Model):
    # 表名
    __tablename__ = "testcase_model"
    # 用例id 用例的唯一标识
    id = Column(Integer, primary_key=True, autoincrement=True)
    # 用例的标题，或者文件名，限定255字符，不为空，并且唯一
    uid = Column(String(255), nullable=False, unique=True)
    # 备注
    remark = Column(String(255))
    remark2 = Column(String(255))

    # def __str__(self):
    #     return {"id": self.id, "uid": self.uid, "remark": self.remark}


# if __name__ == '__main__':
#     from manager import db, app
#     with app.app_context():
#         db.create_all()
